<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ include file="head.jsp"%>
<%@ taglib uri="/struts-tags" prefix="s"%>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>文件上传</title>
</head>
<body>

<hr>

<span>文件上传</span>
<div style="color:red;font-size:14px;">${hint}</div>
<form action="/SSH/upordown/upfile" method="post" enctype="multipart/form-data">
  wenj文件：<input type="file" name="photo"><input type="submit" value="上传">
</form>


<hr>
<span>struts2文件上傳</span>
<b>${save_message}</b>
<s:form method="post" action="%{#basePath}/uploadfile" enctype="multipart/form-data">
<s:label>文件</s:label>
 <s:file name="upload"></s:file>
 <s:submit value="上傳"></s:submit>
</s:form>
</body>
</html>